package hu.mapro.gwtui.gxt.client.columnmodel.field;

import hu.mapro.gwtui.gxt.client.columnmodel.ReadWriteInterface;
import hu.mapro.model.Getter;
import hu.mapro.model.Setter;
import hu.mapro.model.meta.Field;
import hu.mapro.model.meta.HasLabel;

public class ReadWriteAdapter<T, F extends Field<T, ?>&HasLabel&Getter<T, ?>&Setter<T, ?>> extends ReadOnlyAdapter<T, F> implements ReadWriteInterface<T, F> {

	@SuppressWarnings("unchecked")
	@Override
	public <V> void setValue(F field, T object, V value) {
		((Setter<T, V>)field).set(object, value);
	}
	
}